//
//  FirstViewController.m
//  17作业
//
//  Created by dllo on 16/8/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "FirstViewController.h"
#import "Model.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
//    self.view.backgroundColor = [UIColor redColor];
    _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 250, 70, 30)];
    _phoneNumberLabel = [[UILabel alloc] initWithFrame:CGRectMake(160, 250, 150, 30)];
    _genderLabel = [[UILabel alloc] initWithFrame:CGRectMake(80, 300, 70, 30)];
    _ageLabel= [[UILabel alloc] initWithFrame:CGRectMake(160, 300, 70, 30)];
//    ;
//    _nameLabel.backgroundColor = [UIColor redColor];
    [self.view addSubview:_nameLabel];
    [self.view addSubview:_phoneNumberLabel];
    [self.view addSubview:_genderLabel];
    [self.view addSubview:_ageLabel];
    _nameLabel.text = _model.name;
    _phoneNumberLabel.text = _model.phoneNumber;
    _genderLabel.text = _model.gender;
    _ageLabel.text = _model.age;
//    _nameLabel.text = @"方法";
//    _phoneNumberLabel.text = _model.phoneNumber;
//    _genderLabel.text = _model.gender;
//    _ageLabel.text = _model.age;
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
